package org.gongliang.jsmile.common.kit;

import com.alibaba.fastjson.JSON;

/**
 * json工具类
 * 
 * @author MINI
 *
 */
public class JsonKit {

	public static String toJSONString(Object object) {
		return JSON.toJSONStringWithDateFormat(object, "yyyy-MM-dd HH:mm:ss");
	}

	public static String toJSONString(Object object, String dateFormat) {
		return JSON.toJSONStringWithDateFormat(object, dateFormat);
	}
}
